package com.ftg.learn.controller;

import com.ftg.learn.entity.LearnStudent;
import com.ftg.learn.mapper.LearnStudentMapper;
import com.ftg.learn.service.ILearnStudentService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 学生表 前端控制器
 * </p>
 *
 * @author 布衣
 * @since 2025-09-04
 */
@RestController
@RequestMapping("/learnStudent")
public class LearnStudentController {

    @Resource
    private ILearnStudentService learnStudentService;

    @GetMapping("/list")
    public List<LearnStudent> list() {
        return learnStudentService.list();
    }

}
